<?php 
//获取产品自定义属性值
$order = Mage::getModel('sales/order')->load($order_id);
$items = $order->getAllVisibleItems();
foreach ($items as $key => $item) {
	$product = Mage::getModel('catalog/product')->load($item->getProductId());
	$text = $product->getAttributeText('text_name');
}



